import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Demo9 {
    public static void main(String[] args) {
        try(InputStream inputStream = new FileInputStream("./test.txt")){
            while(true){
                int n = inputStream.read();
                if(n == -1){
                    break;
                }
                System.out.printf("%c",n);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
